#!/bin/bash

#
# Settings file for tunfx
#

#
# The format is as follows:
#
# For plain SSH tunnels:
#
#   AddTunnel UniqueID "Tunnel Name" "user@host param1 param2" "DepID1 DepID2|DepID3"
#
# For autossh tunnels (use only if no password is prompted!)
#
#   AddAutoTunnel UniqueID "Tunnel Name" "user@host param1 param2" "DepID1 DepID2"
#
# Separate dependencies with spaces; if at least one dependency amongst many
# must be satisfied, separate them with pipes '|'.
#
# Watch out for circular and self references! tunfx does not check for them
#

# Base ssh keys directory
SK="$HOME/.ssh"

# An example of tunnel
AddTunnel 123 "Il mio server" "user@server.com -i$SK/id_rsa-server.com -L8080:192.168.1.1:22"

# This example depends on the first entry
AddTunnel 456 "Il tuo server" "-p8080 user@localhost -L 5522:localhost:5522" 123
